package JavaSE;

import java.util.Scanner;

public class moneyGame {

    public static class Person {
        private int l, s, m;

        public Person() {
        }

        public Person(int m) {
            if (m == 0) {
                this.l = 10;
                this.s = 10;
            } else {
                this.l = m * 5;
                this.s = m * 10;
            }
        }

        public int getL() {
            return l;
        }

        public int getS() {
            return s;
        }

        public int attack(int bossl, int bosss) {
            this.l -= bosss;
            bossl -= this.s;
            return bossl;
        }

    }

    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int m = cin.nextInt();
        Person person = new Person(m);
        System.out.printf("初始化角色武力值为%d,生命值为%d\n", person.getS(), person.getL());
        int bossl = 3000, bosss = 20;
        while (bossl > 0 && person.l > 0) {
            bossl = person.attack(bossl, bosss);
            if (bossl <= 0 || person.l <= 0) break;
            System.out.printf("怪兽剩余血量%d，角色剩余血量%d\n", bossl, person.l);
        }
        if (bossl <= 0) System.out.println("怪兽死亡");
        else if (person.l <= 0) System.out.println("角色死亡");

    }
}
